-
Notifications
You must be signed in to change notification settings - Fork 441
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
santa: add process.entity_id constructed from agent.id, pid and pidversion #3373
Conversation
Pinging @elastic/security-external-integrations (Team:Security-External Integrations) |
- set: | ||
field: process.entity_id | ||
value: "{{{agent.id}}}-{{{process.entity_id}}}" | ||
if: "ctx.agent?.id != null && ctx.process?.entity_id != null" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not sure who would set process.entity_id
before ? Would this condition ever be true ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The previous set processor may have. This part prepends the agent.id if it's available and needed (the null check is for the "if needed" part of that).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
eeks missed it :) This enriches the existing field.
Isn't it worth having agent.id
which I presume is almost always available for cases where process.pid
and santa.pidversion
are unavailable. That way there is at least one other identifying factor ? But none the less the user could always user agent.id
directly I suppose. 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, that will be available independently.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Just a minor comment/question + rebuild required to regenerate README
.
/test |
🌐 Coverage report
|
What does this PR do?
This adds a
process.entity_id
from the agent.id, the process.pid and the process.pidversion (stored in santa.pidversion).Checklist
changelog.yml
file.Author's Checklist
How to test this PR locally
Related issues
Screenshots